package com.xbongbong.saas.model;

import com.xbongbong.paas.toolbox.wrap.IModel;
import com.xbongbong.saas.domain.entity.CoolAppCardTemplateEntity;

import java.util.List;
import java.util.Map;


/***
 *
 * @author hongxiao
 * @date 2022-06-09 10:24
 * @since
 * @version
 */
public interface CoolAppCardTemplateModel extends IModel<CoolAppCardTemplateEntity> {
   Integer insert(CoolAppCardTemplateEntity entity);

   void insertBatch(List<CoolAppCardTemplateEntity> list);

   List<CoolAppCardTemplateEntity> findEntitys(Map<String, Object> param);

   Integer getEntitysCount(Map<String, Object> param);

   Integer update(CoolAppCardTemplateEntity entity);

   CoolAppCardTemplateEntity getByKey(Long key);

   List findEntitysWithoutSub(Map<String, Object> param);

   CoolAppCardTemplateEntity getByUseScene(Integer cardType, Integer useScene);

   CoolAppCardTemplateEntity getByCardId(String cardId);
}
